
#ifndef __MODEL_LOADER_H
#define __MODEL_LOADER_H

#include <iostream>
#include <string>


class Model
{
/* Member Variables */
private:
	FILE *obj;

	int numVertices, numTexCoords, numNormals, numFaces;
	int *faceVerts;
	float *vertices, *texCoords, *normals;
	int *vertIndices, *texIndices, *normIndices;

	int numColors;
	float **colors;

public:

/* Member Functions */
private:
	void parseVertex(char *str);
	void parseNormal(char *str);
	void parseTexCoord(char *str);
	void parseFace(char *str);

public:
	Model();
	Model(std::string filename);
	void loadObj(std::string filename);
	void printData();
	void setColors(int num, float **col);

	void draw();
};

#endif